package org.jeese.modules.demo.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.jeese.modules.demo.entity.Book;
@Mapper
public interface BookDao {
	public List<Book> listAll();

	public List<Book> listByName(@Param("name") String name);

	public int add(Book book);

	public int edit(Book book);

	public int delete(@Param("id") Long id);

}
